import { defineStore } from "pinia";
import socketIo from "socket.io-client";
export const useUser = defineStore("users", {
  state() {
    return {
      userInfo: {},
    };
  },
  getters() {},
  actions() {},
  persist: {
    //可以直接指定属性，本地缓存为ture
    //persist:true
    //指定缓存的方式
    storage: sessionStorage,
    //指定缓存的字段
    paths: ["userInfo"],
  },
});
